/*
 * Classe FormServer
 *   Interface Gráfica com Usuário
 *
 * Equipe:
 *      Menandro Dias
 *      Pedro Alípio
 *      Sidney dos Santos
 *      Ubirajara Gabriela
 */

package tcpserver.gui;

import java.io.*;
import java.net.*;
import java.awt.*;
import javax.swing.*;
import java.awt.event.*;
import java.util.*;

/**
 *
 * @author menandro.neto
 */
public class FormServer extends JFrame implements ActionListener {
    final String TITLE_GUI = "TCP Server - Redes I - Dom Pedro SI 2006.2";
    private JPanel panelMain;
    private JTextArea logServer;

    public FormServer(){
        super("TCP Server - Redes I - Dom Pedro SI 2006.2");
        this.buildGui();
    }

    public void actionPerformed(ActionEvent e){
        // if (e.getSource() == )
    }

    private void buildGui() {
        panelMain = new JPanel();
        logServer = new JTextArea();

        panelMain.add(logServer, BorderLayout.CENTER);

        this.add(panelMain, BorderLayout.CENTER);

        this.configForm();


    }

    private void configForm(){
        this.setTitle(TITLE_GUI);
        this.setLayout(new FlowLayout());
		this.setSize(500, 800);
		this.pack();
		this.setLocation(400, 250);
		this.setVisible(true);
        this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    }
}
